<div class="eavFields form">
<?php 
	echo $form->create($fieldModelAlias, array('url'=>'/'.$this->params['url']['url']));?>
	<?php
		$fields = cri($fieldModelAlias)->getFields("group","add");
		foreach($fields as $field)
		{
			if($field == "options")
			{
				echo $form->input($field,array("label"=>"Options (sort option field to change order)"));
			}else
			{
				echo $form->input($field);
			}
		}
	?>
		<!-- <a href="javascript:void();" onclick="return insertRange();">Insert numeric range</a>	 -->
<?php echo $form->end(__('Submit'));?>
</div>
<?php
$fieldsetId = '';
if(isset($this->params['named']['fieldset']))
{
	$fieldsetId = $this->params['named']['fieldset'];
}?>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('List EavFields', true), array('action'=>'index','fieldset'=>$fieldsetId));?></li>
	</ul>
</div>
<?php echo $this->element('form_js')?>
